home *** CD-ROM | disk | FTP | other *** search
- package sun.management;
-
- import java.io.File;
- import java.io.IOException;
- import java.security.AccessController;
- import sun.security.action.LoadLibraryAction;
-
- public class FileSystemImpl extends FileSystem {
- public boolean supportsFileSecurity(File var1) throws IOException {
- return isSecuritySupported0(var1.getAbsolutePath());
- }
-
- public boolean isAccessUserOnly(File var1) throws IOException {
- String var2 = var1.getAbsolutePath();
- if (!isSecuritySupported0(var2)) {
- throw new UnsupportedOperationException("File system does not support file security");
- } else {
- return isAccessUserOnly0(var2);
- }
- }
-
- static native void init0();
-
- static native boolean isSecuritySupported0(String var0) throws IOException;
-
- static native boolean isAccessUserOnly0(String var0) throws IOException;
-
- static {
- AccessController.doPrivileged(new LoadLibraryAction("management"));
- init0();
- }
- }
-